<template>
  <div class="head">
    <div class="customer le">
      <div v-if="go==true" @click="goto">
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-jiantou_zuo"></use>
        </svg>
      </div>
      <div v-if="go==false">
        ×
      </div>
      <div v-if="go!=true&&go!=false">
          
      </div>
    </div>

    <div class="title">
      {{title}}
    </div>

    <div class="customer ri">
      <div v-if="ri==false">
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-kefunv"></use>
        </svg>
      </div>
      <div v-if="ri==true">
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-saoyisao"></use>
        </svg>
      </div>
      <div v-if="ri!=true&&ri!=false">
        {{ri}}
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props:['title',"go","ri"],
  data(){
    return {
      
    }
  },
  created(){

  },
  methods:{
    // 返回上一页
    goto(){
      this.$router.go(-1)
    }
  }
}
</script>

<style scoped lang="less">
  .head{  
    display: flex;
    flex-direction: row;
    position: relative;
    background: #fff;
    .title{
      flex: 1;
      text-align: center;
      font-size: .17rem;
      padding: .15rem 0;
      background: #fff;
    }
    .customer{
      position: absolute;
      top: 50%;
      margin-top: -0.115rem;
    }
    .le{
      left: 0.21rem;
    }
    .ri{
      right: 0.21rem;
    }
    .icon{
      height: .23rem;
      width: .23rem;
    }
  }
</style>
